package com.itheima.dao;

import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberDao {
    Member findMemberByPhoneNumber(String telephone);

    void add(Member member1);

    Integer findMemberCountByMonths(String month);
    List<Map<String,Object>> findMemberCountByYears(@Param( "now" ) String now, @Param( "before" ) String before);
    List<Map<String,Object>> findMemberCountByAges();
    Integer findMemberCountByDate(String today);

    Integer findTotalMemberCount();

    Integer findMemberCountAfterDate(String date);

   List<Map<String,Object>> findMemberCountBySex();
}
